


import 'package:erp/UI/Pages/SettingsPages/LogExplorerPage.dart';
import 'package:flutter/material.dart';

class SettingsPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Settings Page"),
        centerTitle: true,
      ),
      body: Padding(
        padding: EdgeInsets.all(10.0),
        child: ListView(
          children: <Widget>[
            ListTile(
              title: Text("Error log explorer"),
              subtitle: Text("Runtime error logs"),
              leading: Icon(Icons.error),
              onTap: () async {
                await Navigator.of(context).push(MaterialPageRoute(builder: (context) => LogExplorerPage()));
              },
            ),
            Divider()
          ],
        ),
      ),
    );
  }
}
